home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 7.1 KB | 275 lines | [TEXT/MPS ] |
- ;
- ; File: ASDebugging.a
- ;
- ; Contains: AppleScript Debugging Interfaces.
- ;
- ; Version: Technology: AppleScript 1.1
- ; Release: Universal Interfaces 3.0d3 on Copland DR1
- ;
- ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
- IF &TYPE('__ASDEBUGGING__') = 'UNDEFINED' THEN
- __ASDEBUGGING__ SET 1
-
- IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
- include 'AppleEvents.a'
- ENDIF
- IF &TYPE('__APPLESCRIPT__') = 'UNDEFINED' THEN
- include 'AppleScript.a'
- ENDIF
- IF FOR_SYSTEM7_ONLY THEN
- ;
- ;*************************************************************************
- ; Mode Flags
- ;*************************************************************************
- ;
- ;
- ; This mode flag can be passed to OSASetProperty or OSASetHandler
- ; and will prevent properties or handlers from being defined in a context
- ; that doesn't already have bindings for them. An error is returned if
- ; a current binding doesn't already exist.
- ;
-
- kOSAModeDontDefine EQU $0001
- ;
- ;*************************************************************************
- ; Component Selectors
- ;*************************************************************************
- ;
-
- kASSelectSetPropertyObsolete EQU $1101
- kASSelectGetPropertyObsolete EQU $1101
- kASSelectSetHandlerObsolete EQU $1103
- kASSelectGetHandlerObsolete EQU $1104
- kASSelectGetAppTerminologyObsolete EQU $1105
- kASSelectSetProperty EQU $1106
- kASSelectGetProperty EQU $1107
- kASSelectSetHandler EQU $1108
- kASSelectGetHandler EQU $1109
- kASSelectGetAppTerminology EQU $110A
- kASSelectGetSysTerminology EQU $110B
- kASSelectGetPropertyNames EQU $110C
- kASSelectGetHandlerNames EQU $110D
- ;
- ;*************************************************************************
- ; Context Accessors
- ;*************************************************************************
- ;
- ;
- ; pascal OSAError OSASetProperty(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *variableName, OSAID scriptValueID)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _OSASetProperty
- move.l #$00101106,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION OSASetProperty
- ENDIF
-
- ;
- ; pascal OSAError OSAGetProperty(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *variableName, OSAID *resultingScriptValueID)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _OSAGetProperty
- move.l #$00101107,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION OSAGetProperty
- ENDIF
-
- ;
- ; pascal OSAError OSAGetPropertyNames(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, AEDescList *resultingPropertyNames)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _OSAGetPropertyNames
- move.l #$000C110C,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION OSAGetPropertyNames
- ENDIF
-
- ;
- ; pascal OSAError OSASetHandler(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *handlerName, OSAID compiledScriptID)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _OSASetHandler
- move.l #$00101108,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION OSASetHandler
- ENDIF
-
- ;
- ; pascal OSAError OSAGetHandler(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *handlerName, OSAID *resultingCompiledScriptID)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _OSAGetHandler
- move.l #$00101109,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION OSAGetHandler
- ENDIF
-
- ;
- ; pascal OSAError OSAGetHandlerNames(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, AEDescList *resultingHandlerNames)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _OSAGetHandlerNames
- move.l #$000C110D,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION OSAGetHandlerNames
- ENDIF
-
- ;
- ; pascal OSAError OSAGetAppTerminology(ComponentInstance scriptingComponent, long modeFlags, FSSpec *fileSpec, short terminologyID, Boolean *didLaunch, AEDesc *terminologyList)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _OSAGetAppTerminology
- move.l #$0012110A,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION OSAGetAppTerminology
- ENDIF
-
- ;
- ; Errors:
- ; errOSASystemError operation failed
- ;
- ;
- ; pascal OSAError OSAGetSysTerminology(ComponentInstance scriptingComponent, long modeFlags, short terminologyID, AEDesc *terminologyList)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _OSAGetSysTerminology
- move.l #$000A110B,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION OSAGetSysTerminology
- ENDIF
-
- ;
- ; Errors:
- ; errOSASystemError operation failed
- ;
- ;
- ; Notes on terminology ID
- ;
- ; A terminology ID is derived from script code and language code
- ; as follows;
- ;
- ; terminologyID = ((scriptCode & 0x7F) << 8) | (langCode & 0xFF)
- ;
- ;
- ;*************************************************************************
- ; Obsolete versions provided for backward compatibility:
- ;
- ;
- ; pascal OSAError ASSetProperty(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *variableName, OSAID scriptValueID)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ASSetProperty
- move.l #$000C1101,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ASSetProperty
- ENDIF
-
- ;
- ; pascal OSAError ASGetProperty(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *variableName, OSAID *resultingScriptValueID)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ASGetProperty
- move.l #$000C1102,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ASGetProperty
- ENDIF
-
- ;
- ; pascal OSAError ASSetHandler(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *handlerName, OSAID compiledScriptID)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ASSetHandler
- move.l #$000C1103,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ASSetHandler
- ENDIF
-
- ;
- ; pascal OSAError ASGetHandler(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *handlerName, OSAID *resultingCompiledScriptID)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ASGetHandler
- move.l #$000C1104,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ASGetHandler
- ENDIF
-
- ;
- ; pascal OSAError ASGetAppTerminology(ComponentInstance scriptingComponent, FSSpec *fileSpec, short terminologID, Boolean *didLaunch, AEDesc *terminologyList)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ASGetAppTerminology
- move.l #$000E1105,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ASGetAppTerminology
- ENDIF
-
- ;
- ; Errors:
- ; errOSASystemError operation failed
- ;
- ; ************************************************************************
- ENDIF
- ENDIF ; __ASDEBUGGING__
-
-